<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">标题</h1>
		</header>
		<div class="mui-content">
			<input id="files" type="file" onchange="previewImage(this)" multiple="multiple">
			<input id="files" type="file" onchange="previewImage(this)" multiple="multiple">

			<div id="prvid">预览容器</div>
		</div>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()

			function previewImage(file) {
				f = file.files[0]
				var fr = new FileReader();
				fr.readAsDataURL(f);
				fr.onload = function(e) {
					var src = e.target.result;
					console.log(src)
				}
			}
		</script>
	</body>

</html>